package com.myh.cc.coom.recommend.view

import android.support.v7.widget.LinearLayoutManager
import android.widget.LinearLayout
import com.myh.cc.R
import com.myh.cc.base.BaseActivity
import com.myh.cc.coom.recommend.net.RecommendNetControl
import com.myh.cc.coom.recommend.viewmodel.RecommendDetailsModel
import com.myh.cc.databinding.ActivityRecommendDetailsBinding

/**
 * des    ：
 * create    ：  mayahao.
 * date   ：  2018/1/18.   ：
 */
class RecommendDetailsActivity:BaseActivity<ActivityRecommendDetailsBinding,RecommendNetControl,RecommendDetailsModel>()  {
    override fun getLayoutId(): Int {
        return R.layout.activity_recommend_details
    }

    override fun initView() {

        val  albummid = intent.extras.getString("albummid","")

        mBinder.rdDetialsRv.layoutManager = LinearLayoutManager(getContext(),LinearLayout.VERTICAL,false)
        mModel.getRecommendDetails(albummid)

        mBinder.relaBack.setOnClickListener{
            view ->
            finish()
        }
    }
}